package com.example.demo.mapper;

import com.example.demo.entity.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
    public interface UserDao {
        @Insert("INSERT INTO users (id,name,password,email) VALUES (#{id}, #{name}, #{password}, #{email})")
        void insertUser(User user);
        List<User> selectAllUsers();
    }
